const Juhe = require('./index');
const juhe = new Juhe({
    keys: {
        // 短信
        sendSms: "b560eeb3688eb8706db571269d52f2b7",
    },
    sendSms: {
        // 注册
        0: "92246",
        // 登陆
        1: "92246",
        // 忘记密码/或修改密码
        2: "92246",
    },
});


(async () => {
    try {
        const ret = await juhe.sendSms({
            templateId: '92246',
            mobile: '13880582267',
            data: {
                code: 123456,
            }
        })

        console.log('ret', ret);
    } catch (e) {
        console.log(e);
    }
})()